package com.mdd.front.controller.yangyangLeadingEnterprise;

import com.mdd.common.aop.NotLogin;
import com.mdd.front.service.yangyangLeadingEnterprise.ITAppModuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("api/module")
@Api(tags = "app导航模块管理")
public class TAppModuleController {

    @Resource
    ITAppModuleService appModuleService;

    @NotLogin
    @PostMapping(value = "/selectList",produces = "application/json; charset=UTF-8")
    @ApiOperation(value="app导航模块查询")
    @ResponseBody
    public String selectList(Integer type) {
        return appModuleService.selectList(type);
    }

}
